// 引入mockjs模块
import Mock from 'mockjs'
// 把json数据引入[JSON数据格式没有暴露但是可以引入]
// webpack默认可以暴露的：图片、JSON数据格式
import banner from '../mock/banner.json'
import commodity from '../mock/commodity.json'
import typenav from '../mock/typenav.json'
import banner2 from '../mock/banner2.json'
// import floor from '../mock/floor.json'

//mock数据:第一个参数请求地址，第二个参数：请求数据
Mock.mock("/mock/banner",{code:200,data:banner})//模拟首页大的轮播图的数据
// Mock.mock("/mock/floor",{code:200,data:floor})
Mock.mock("/mock/commodity",{code:200,data:commodity})
Mock.mock("/mock/typenav",{code:200,data:typenav})
Mock.mock("/mock/banner2",{code:200,data:banner2})